cd /root/run/go/code/common

git pull

cd /root/run/go/code/api_server

git pull

export GOPRIVATE="jihe.common"
export GOPROXY=https://goproxy.cn

GO111MODULE=on go build -o api_server cmd/main.go

ssh test1 "supervisorctl stop api_server"

scp api_server configs/test.yml test1:/root/run/api_server

ssh test1 "supervisorctl start api_server"

#ssh test2 "supervisorctl stop api_server"
#
#scp api_server configs/test.yml test2:/root/run/api_server
#
#ssh test2 "supervisorctl start api_server"